home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / zyxel-1.5-s / zyxel-1 / Makefile.linux < prev    next >
Makefile  |  1994-12-01  |  2KB  |  73 lines

  1. # Makefile for ZyXEL distribution
  2. #
  3. # Linux version, including generation of distribution tar files.
  4. #
  5. # ZyXEL is a "getty"-like program created especially to manage
  6. # the ZyXEL U-1496E(+) modem
  7. #
  8. # This program is copyrighted by:
  9. #    R.E. Janssen
  10. #    Prof L Fuchslaan 8
  11. #    3571 HC  UTRECHT, NETHERLANDS
  12. # Permission is granted only for noncommercial use.  Any commercial use or
  13. # distribution via commercial services without the author's permission is
  14. # prohibited.
  15.  
  16. SHELL=    /bin/sh
  17. CC=    gcc
  18.  
  19. CFLAGS=    -O2 -fomit-frame-pointer -Wall
  20. LFLAGS=    
  21. DEBUG=    -DDEBUG
  22.  
  23. LIBS=
  24.  
  25. # where things go
  26. #SBIN=    /etc
  27. SBIN=    /sbin
  28. ZYX=    /usr/ZyXEL
  29.  
  30. # rules
  31.  
  32. all:    ZyXEL
  33.     if [ -d rsynth-2.0 ] ; then cd rsynth-2.0; make CC="$(CC)" CFLAGS="$(CFLAGS)" LFLAGS="$(LFLAGS)"; fi
  34.     if [ -f /usr/include/sys/soundcard.h ] ; then cd zplay; make CC="$(CC)" CFLAGS="$(CFLAGS)" LFLAGS="$(LFLAGS)"; fi
  35.  
  36. ZyXEL:    zyxel.o
  37.     $(CC) $(LFLAGS) -o $@ zyxel.o $(LIBS) 
  38.  
  39. zplay:    zplay.o dsp.o
  40.     $(CC) $(LFLAGS) -o $@ $* zplay.o dsp.o
  41.  
  42. install: all
  43.     -mv $(SBIN)/ZyXEL $(SBIN)/ZyXEL-
  44.     -cp ZyXEL $(SBIN)/ZyXEL
  45.     chmod 700 $(SBIN)/ZyXEL
  46.     if [ -d rsynth-2.0 ] ; then cp rsynth-2.0/say $(ZYX)/zsynth; fi
  47.     if [ -d rsynth-2.0 ] ; then cp rsynth-2.0/mkdictdb $(ZYX)/mkdictdb; fi
  48.     if [ -f zplay/zplay ] ; then cp zplay/zplay $(ZYX)/zplay; fi
  49.     -strip $(SBIN)/ZyXEL $(ZYX)/zsynth $(ZYX)/mkdictdb $(ZYX)/zplay
  50.  
  51. clean:
  52.     rm -f *.o core *.out .*list *.ln
  53.  
  54. clobber: clean
  55.     rm -f ZyXEL
  56.  
  57. dist:    all
  58.     tar -Xdist.exclude -cvzf ZyXEL.tar.gz $(SBIN)/ZyXEL /etc/default/ZyXEL /etc/issue.modem $(ZYX)
  59.     mtime ZyXEL.tar.gz
  60.     chown rob.users ZyXEL.tar.gz
  61.  
  62. sdist:
  63.     tar -Xsdist.exclude -cvzf ZyXEL-source.tar.gz README Makefile.* zyxel.c alphasort.c scandir.c usleep.c hplay.c rsynth-2.0-diffs zplay
  64.     mtime ZyXEL-source.tar.gz
  65.     chown rob.users ZyXEL-source.tar.gz
  66.  
  67. zyxel.o: zyxel.c
  68.     $(CC) -c $(CFLAGS) $(DEBUG) zyxel.c
  69.  
  70. zplay.o: zplay.c dsp.h
  71. dsp.o: dsp.c dsp.h
  72.